package com.daka.dao;

import com.daka.mybatis.SQLMapper;
import com.daka.vo.db.ActivitySignVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author beliveli on 2016/3/31 0031.
 */
@Repository(value = "activitySignMapper")
@SQLMapper
public interface ActivitySignMapper {

    List<ActivitySignVo> selectByUser(int userId);

    List<ActivitySignVo> selectPageByUser(@Param("userId") Integer userId, @Param("userName") String userName, @Param("pageIndex") Integer pageIndex, @Param("pageSize") Integer pageSize);

    int selectCountByUser(@Param("userId") Integer userId, @Param("userName") String userName);

    List<ActivitySignVo> selectByActivity(int activityId);

    List<ActivitySignVo> selectPageByActivity(@Param("activityId") Integer activityId, @Param("activityName") String activityName, @Param("pageIndex") Integer pageIndex, @Param("pageSize") Integer pageSize);

    int selectCountByActivity(@Param("activityId") Integer activityId, @Param("activityName") String activityName);

}
